package cn.edu.hnu.gpg.dto;

import cn.edu.hnu.gpg.entity.Bulletin;

import java.util.Date;

public class BulletinDisplay {

    private String title;
    private String content;
    private Date releaseTime;

    public BulletinDisplay() {}

    public BulletinDisplay(Bulletin bulletin) {
        this.title = bulletin.getTitle();
        this.content = bulletin.getContent();
        this.releaseTime = bulletin.getReleaseTime();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

//    public String getPublisherName() {
//        return publisherName;
//    }
//
//    public void setPublisherName(String publisherName) {
//        this.publisherName = publisherName;
//    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }
}
